package com.yhs.YShop.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yhs.YShop.mapper.OperationMapper;
import com.yhs.YShop.model.Operation;
import com.yhs.YShop.service.OperationService;
@Service
public class OperationServiceImpl implements OperationService{

	@Autowired
	private OperationMapper operationMapper;
	
	@Override
	public List<Operation> findAll() {
		return operationMapper.findAll();
	}

	@Override
	public Integer saveOperation(Operation operation) {
		return operationMapper.saveOperation(operation);
	}

	@Override
	public Operation findOperationById(Integer operationId) {
		return operationMapper.findOperationById(operationId);
	}

}
